﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PhotoGallery.BLL;
using PhotoGallery.Model;
public partial class admin_message : System.Web.UI.Page
{
      protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["user"] == null)
        {
            Response.Redirect("login.aspx");
        }
        else 
        {
            User u = (User)Session["user"];
            if (u.Role == "1")
            {

            }
            else
            {
                Response.Redirect("index.aspx");
            }
        }
        
    }
    
}